<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    var result = window.confirm("确认删除这条数据吗？");
    if(result){
        alert("用户确认操作");
    }
    else{
        alert("用户取消了操作");
    }
</script>
</html>